﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Model.Comment>" %>
<div class="comment-list">
    <div class="comment-idea">
        <h3>
            <img alt="" src="/Images/guibinhluan.png" style="vertical-align:middle" /> &nbsp; GỬI BÌNH LUẬN
        </h3>
    </div>
    <div class="comment-body">
       <% using (Html.BeginForm("Comment", "Deal", FormMethod.Post, new { id = "siteCommentForm" }))
          {%>
        <table class="admintable">
            <tr>
                <td style="width:100px">Họ tên<font color="red">*</font></td>
                <td>
                <%= Html.TextBoxFor(model => model.AddBy, new { @class = "required", style = "width:300px" })%>
                    <%=Html.HiddenFor(model => model.ID)%>                                                      
                </td>
            </tr>
            <tr>
                <td>Email</td>
                <td>
                    <%= Html.TextBoxFor(model => model.AddByEmail, new { style = "width:300px" })%>                                  
                </td>
            </tr>            
            <tr>
                <td>Tiêu đề(<font color="red">*</font>)</td>
                <td><%=Html.TextBoxFor(model => model.Title, new { @class = "required", style = "width:400px" })%></td>
            </tr>
            <tr>
                <td>Nội dung<font color="red">*</font></td>
                <td><%= Html.TextAreaFor(model => model.CommentContent, new { @class = "required", style = "width:400px; height:100px" })%> &nbsp;<input id="btnSave" type="submit" value="Lưu" style="width:50px" />   </td>
            </tr>            
        </table>
    <%} %>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $("#siteCommentForm").validate();
    });    
</script> 
